package mapper;

import com.javabean.Dept;

import java.net.DatagramPacket;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public interface DeptMapper {
    List<Dept> selectAll();
    Dept selectById();
    Dept selectById(int id);
    Dept selectByIdAndDname(int id,String dname);
    Dept selectByDept(Dept dept);
    List<Dept> selectByList(ArrayList<Integer> ids);
    List<Dept> selectByArray(int[] ids);

    int insertDept(Dept dept);
    int insertDeptList(ArrayList<Dept> depts);
    int deleteById(int id);
    int deleteByArray(int[] ids);
    int updateAllById(Dept dept);


    int insertDept1(Dept dept);
    int insertDept2(Dept dept);
}
